package userinterface;

import java.awt.Label;

import javax.swing.JButton;
import javax.swing.JTextField;

import db.DBadd;

public class AddInfo extends BasicUI {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	static String url;
	static JButton ok;
	static JTextField textField;
	DBadd dBadd = new DBadd();
	static JButton addButton;
	static JButton previewButton;
	Label label;
	
	public static void addDetail() {
		Label noticeLabel = new Label("The file is right written!");
		container.add(noticeLabel);
		noticeLabel.setBounds(200, 155, 200, 25);
		
		previewButton = new JButton("preview");
		container.add(previewButton);
		previewButton.setBounds(200, 180, 100, 30);
		
		addButton = new JButton("add");
		container.add(addButton);
		addButton.setBounds(300, 180, 100, 30);

	}
	
	public AddInfo(String string) {
		super();
		
		label = new Label(string);
		container.add(label);
		label.setBounds(200, 0, 100, 50);
		
		Label label2 = new Label("Please input the url of the Excel file:");
		container.add(label2);
		label2.setBounds(200, 50, 300, 50);

		textField = new JTextField();
		container.add(textField);
		textField.setBounds(200, 100, 330, 30);

		ok = new JButton("ok");
		container.add(ok);
		ok.setBounds(480, 140, 50, 30);
	}
}
